
export const studentFormItems = [
	{
		label: "学员姓名",
		prop: "studentName",
	},
	{
		label: "学员生日",
		prop: "birthday",
		component: 'el-date-picker',
		style: {
			width: '100%'
		},
	},
	{
		label: "学员性别",
		prop: "sex",
		component: 'el-select',
		options: [
			{ value: 1, label: '男' },
			{ value: 2, label: '女' }
		],
	},
	{
		label: '联系人姓名',
		prop: "constractName",
	},
	{
		label: "联系人手机",
		prop: "constracPhone",
	},
	{
		label: "亲属关系",
		prop: "relationship",
		component: 'el-select',
		options: [
			{ value: 1, label: '母亲' },
			{ value: 2, label: '父亲' },
			{ value: 4, label: '爷爷' },
			{ value: 5, label: '奶奶' },
			{ value: 6, label: '姥爷' },
			{ value: 7, label: '姥姥' },
			{ value: 8, label: '其他' },
		],
	},
	{
		label: "所属校区",
		prop: "grade",
		component: 'el-select',
		options: [
			{ value: 1, label: '凤冈' },
			{ value: 2, label: '金沙洲' },
			{ value: 4, label: '狮岭' },
			{ value: 5, label: '石排' },
			{ value: 6, label: '三乡' },
			{ value: 7, label: '大石' },
			{ value: 8, label: '花都' },
		],
	},
	{
		label: "身份证号",
		prop: "idCard",
	},
	{
		label: "学员等级",
		prop: "stuLevel",
	},
	{
		label: "所属小区",
		prop: "community",
	},
	{
		label: "地址",
		prop: "address",
	},
	{
		label: "邮箱",
		prop: "email",
	},
	{
		label: "紧急联系人",
		prop: "emergency",
	},
	{
		label: "紧急联系人电话",
		prop: "emergencyPhone",
	},
	{
		label: "学员年级",
		prop: "classLevel",
		slot: 'gradeSelect'
	},
	{
		label: "转介绍学员",
		prop: "referStudent",
		slot: 'referStudent',
	},
	{
		label: "转介绍员工",
		prop: "referEmployees",
		slot: 'referEmployees',
	},
	{
		label: "生源学校",
		prop: "srcSchoolLevel",
	},
	{
		label: "生源校班级",
		prop: "srcSchoolClass",
	},
	{
		label: "生源校班主任",
		prop: "srcSchoolTeacher",
	},
	{
		label: "生源校班主任电话",
		prop: "srcSchoolPhone",
	},
	{
		label: "备注",
		prop: "remark",
		component: 'el-input',
		type: 'textarea'
	},
]

export const rules = {
	name: {
		required: true,
		message: '请输入学员姓名',
	},
	birthday: {
		required: true,
		message: '请输入学员生日',
	},
	sex: {
		required: true,
		message: '请选择学员性别',
	},
	constractName: {
		required: true,
		message: '请输入联系人姓名'
	},
	constracPhone: {
		required: true,
		message: '请输入联系人手机'
	},
}
